// arm simulator.cpp : Defines the entry point for the console application.
//
#include <windows.h>
#include "stdafx.h"
#include "log.h"
#include "symtbl.h"
#include "tty.h"

int _tmain(int argc, _TCHAR* argv[])
{
	if(!log_init("log.txt"))
	{
		printf("can not create log.\n");
		return -1;
	}

	int sys_init();
	int sys_run();	
	void setup_boot();

	sys_init();
	setup_boot();

#ifdef UBOOT
	linux_sym_load("..\\sym.dat");
#else
	linux_sym_load("..\\sym-xip.dat");
#endif


	TTYStart(argv[0]);
	sys_run();

	log_close();
	return 0;
}

